package nextEntity

import (
	"gitee.com/fierce_wolf/go-fox-edge-common/commEntityManager"
	"gitee.com/fierce_wolf/go-fox-edge-common/commSql"
	_ "github.com/go-sql-driver/mysql" //具体使用的时候，请在服务中，某个go文件中import这一句话
)

type entityManger struct {
}

func (e *entityManger) InitLoadEntity() {
	// 初始化MYSQL/SQLite的数据库连接
	e.initDBConnect()

	commEntityManager.InitLoadEntity()
}

func (e *entityManger) initDBConnect() {
	err := commSql.Client.ConnectMySQL()
	if err != nil {
		panic("连接数据库失败:" + err.Error())
	}
}
